-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ghini 1.0 wininstaller #294
Conversation
All seems to be working fine. Interestingly, just looking at the output from running this.. Windows is awash with variations to naming conventions. Some of the dlls are all capitals, some are all lowercase and some are capitalised. Then there's even a few camel case thrown in. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please have a look at the current conflicts, then push again to the same branch. thank you.
about the else: desktop.open(data)
: (While sometimes it's okay to put an if/for/while with a small body on the same line, never do this for multi-clause statements. Also avoid folding such long lines!)
Am surprised that pylint didn't pick the Is this the sort of thing your talking about?
I hate this! I was just sticking with the way it was before. Thought about changing it to something like this...
But I'm not too keen on the One thing I'd say is the longer I've worked at getting the py2exe setup working, the more I see issues with it (using the above as a small example, I'm fairly sure that sqlalchemy_includes is obsolete now as setuptools does seem to find and include everything without it. Don't even need to have sqlalchemy in |
…wininstaller Conflicts: bauble/utils/web.py scripts/build-multiuser.nsi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we have two build*.nsi?
and why are identifiers ALLCAPITALS in one file alllowercase in the other?
please do not include TODO in the sources: open issues instead. From time to time I review the code and remove old TODO comments, translating them to issues. Very often they are just outdated comments, only distracting the reader.
about removing the trailing from bauble.plugins.garden.source import Contact, create_contact, \
Source, Collection, CollectionPresenter, PropagationChooserPresenter vs from bauble.editor import (
GenericEditorView, GenericEditorPresenter) |
maybe not now, but repeating information is the best way to future inconsistencies. |
I thought I would give it a try, but I guess I'm missing instructions.
I get so what do I do next? I remove the global installation for py2exe and install it in the virtual environment, using to be sure, I repeat the sequence |
Only because this is the original and, while I got it to work with a few minor changes, I was unable to install for all users correctly in more modern windows. I figured it may be useful for very old versions of windows. I'm not about to dig up an XP machine or VM to test that theory on tho. My line of thinking would be to delete it once you have it. At least that way if there is a need for it you can dig it back up. Regarding the differences in variable names, see the wiki for NsisMultiUser and search
py2exe was very frustrating to get to even work, I even ended up pip installing everything globally at one point (not ideal, I know but this is the only thing I use the setup for. If your looking for the easiest, brute force way I know that will work.) I'm sure I had that sorted out tho (did I have to build py2exe possibly?). I know I was annoyed that you couldn't
Thats why I asked you
after commit cb51841 I see I missed a couple. Was thinking you where talking about .py files. |
Also re naming conventions. ALL_CAPS is not normal for functions, sections, etc. MixedCaps is. |
I think it was |
or try this |
Too late to talk now about the missed requests one year ago. I asked (it was before a conference, where I would meet several Windows users), you wrote (Sun, 11 Sep 2016 17:08:53 +1000) "I think I've got it sorted but before I send something through I'm heading over to a friend's place tomorrow", I waited, time passed, the conference came, we either gave up or forgot. |
Sorry, been out all day... ...I wasn't trying to accuse you of anything for not asking these questions a year ago was just saying I wish we were having this discussion a year ago because I'd remember so much more! I did send you a PR (admittedly against mrbg branch) and I did send you the installer also didn't I???? Via WeTransfer? (Thought I also included a zipped copy of frozen, stick it on a thumb drive and its a great way to show people at a conference etc.) I remember wondering why I never heard anything back. If I didn't I do apologise. I really thought I had. So.., to the problem at hand. luckily I did keep notes.. The issue is py2exe not working well with eggs. see here. So to get versions that py2exe can work with, and I'm sure there are lot more elegant a way to do this, I ended up doing is.: From within the repo and with the virtual environment activated.
Remove the ghini.desktop line from requirments.txt then create a new virtual environment in which to build, which on my system with python 2 and 3 was like this:
(attaching my requirements.txt I just used to check this worked in an fresh win7 VM for reference.)
As for details on NSIS set up I can expand on that also if you like? Think it was fairly straight forward (plugins are all named in the script comments). Sorry I had totally forgotten I had done this. Only did it once of course and have a batch file in my home folder called workGhini.bat that activates the virtual environment and changes directories so I don't ever think about it. I'm happy to document this but as I said I'm sure there are better ways to accomplish it. Let me know either way. |
as written:
from your hints, I see you type so I go install nsis, I should also put it in the path by hand, but let's see how it goes... there are still undeclared dependencies, to start with https://github.com/Drizin/NsisMultiUser/ I copy the two do you think you can review the whole process and file a new merge request, once it's working and documented and the documentation tested, and preferably where we only have one and no, I never saw any of what you mention. a local installation on a usb drive? nice idea. by the way: |
I'm reading the |
Funny, I was just looking at the original As for NSIS. Have just been looking and I didn't keep such good notes. I do know that it has to be version 3 NSIS and there may be issues with the current version of NsisMultiUser as I've stated before. There has been major changes since I installed it. If you can get a version from around a year ago it should all work. I'll try to find time over the next few days to have a look (going to be a little time poor for parts of this week). And yes I'll document everything and send the PR. I really did think I had sent everything. Egg on face! |
I ran There's too much detail missing, too many ad hoc solutions, I don't find this a rewarding task, and it solves a problem which I don't experience as a problem, and if we do "solve" this, the solution will make distribution a lot costlier (in terms of time and bandwidth) than it is now, so let me please drop the subject. I'll be happy with a windows ghini.desktop installation on a memory stick. You're obviously free to continue the task if you think so. |
But yes I do now remember that the plugins for NSIS are a bit odd. I'll set it all up in a VM and let you know. |
Just looking at this. Will grab it from the repo at around 1.0.11 and once I have something easily repeatable I'll update it and paste it in at the end of the new version. |
After pylint etc.